/**
 * 系统配置参数
 *   cssList: 配置加载的样式文件列表
 *   formElement: 配置系统组件列表
 *   可添加其他自定义配置
 */
console.log("APP_CONFIG load.");
const APP_CONFIG = {
	"ROOTPATH": "/original-form-designer/",
	"domain": {
		"cmdb": "/original-form-designer" // 数据建模接口地址，这里使用本项目提供的模拟测试数据
	},
	"cssList": [
		"assets/js/lib/layer-v3.2.0/layer/theme/default/layer.css",
		"assets/js/lib/BootstrapValidator/dist/css/bootstrapValidator.css",
		"assets/js/lib/bootstrap-3.4.1/css/bootstrap.css",
		//"assets/js/lib/bootstrap-colorpicker/bootstrap-colorpicker.css",
		"assets/js/lib/BootstrapFormHelpers/css/bootstrap-formhelpers.css",
		"assets/js/lib/flatpickr/flatpickr.min.css",
		"assets/css/form-designer.css",
		"assets/css/form-v2021.css"
	],
	"formElement": {
		"FormInput": {
			"enable": true, //是否启用组件，设置为false将不会加载组件
			"glyphicon": "glyphicon-text-size", //glyphicon图标
			"label": "单行文本框" //拖拽控件显示名称
		},
		"Textarea": {
			"glyphicon": "glyphicon-text-size",
			"label": "多行文本框"
		},
		"StaticText": {
			"glyphicon": "glyphicon-text-size",
			"label": "静态文本"
		},
		"DateTime": {
			"glyphicon": "glyphicon-calendar",
			"label": "日期时间"
		}
	}
};

//模型字段类型对应的组件类型映射关系
const MODEL_PROPERTY_TYPE_2COMPONENT_TYPE_MAP = {
	"20": "TODO", //业务模型二维表格
	"5" : "DateTime", // 5:日期时间 格式为:年-月-日 时:分:秒
	"31": "DateTime", //31:时间         格式为:时:分:秒
	"24": "DateTime", //24:日期         格式为:年-月-日
	"12": "Textarea", //12:长字符串
	"21": "TODO", //21:内置模型弹出单选  
	"22": "TODO", //22:内置模型弹出多选
	"23": "TODO", //23:文件
	"15": "TODO", //15:字典表  普通下拉框
	"16": "TODO", //16:字典表  树形下拉框       
	"17": "TODO", //17:字典表  单选框
	"18": "TODO", //18:字典表  复选框
	"32": "TODO", //32:字典表  普通下拉多选      
	"33": "TODO", //33:字典表  树形下拉多选
	"34": "TODO", //34:字典表  联动下拉选 
	"0": "TODO" // 默认使用输入框
}